package com.hansming.bss.modules.sfc.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.hansming.bss.common.service.CrudService;
import com.hansming.bss.modules.sfc.dao.OrderItemDao;
import com.hansming.bss.modules.sfc.entity.OrderItem;

/**
 * 订单项目明细Service
 * @author Hansming
 * @version 2017-10-24
 */
@Service
@Transactional(readOnly = true)
public class OrderItemService extends CrudService<OrderItemDao,OrderItem>{

	@Autowired
	private OrderItemDao orderItemDao;
		
	//根据订单ID获得每项订单明细
	public List<OrderItem> getOrderItemsByOrderId(String id){
		return orderItemDao.getOrderItemsByOrderId(id);
	}
	
}
